<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set value="${pageContext.request.contextPath }" var="path"
	scope="page"></c:set>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" type="image/png" sizes="16x16" href="../plugins/images/favicon.png">
    <title>课程管理页</title>
    <!-- Bootstrap Core CSS -->
    <link href="${path}/static/admin/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Menu CSS -->
    <link href="${path}/static/admin/plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.css" rel="stylesheet">
    <!-- animation CSS -->
    <link href="${path}/static/admin/css/animate.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="${path}/static/admin/css/style.css" rel="stylesheet">
    <!-- color CSS -->
    <link href="${path}/static/admin/css/colors/blue-dark.css" id="theme" rel="stylesheet">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="${path}/static/admin/https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="${path}/static/admin/https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style type="text/css">
		.page{
			text-align:center;width:100%;
		}
			.page a {
				border: 1px solid #eee; 
				padding: 0 10px;
				text-decoration: none;
				color: #000;
				background: #fff;
			}
			.page a.cur {
				color:red;
				border: 1px solid red; 
				cursor: default;
			}
		</style>
</head>

<body>
    <!-- Preloader -->
    <div class="preloader">
        <div class="cssload-speeding-wheel"></div>
    </div>
    <div id="wrapper">
        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top m-b-0">
            <div class="navbar-header"> <a class="navbar-toggle hidden-sm hidden-md hidden-lg " href="javascript:void(0)" data-toggle="collapse" data-target=".navbar-collapse"><i class="fa fa-bars
"></i></a>
                <div class="top-left-part"><a class="logo" href="index.html"><b><img src="${path }/static/admin/plugins/images/pixeladmin-logo.png" alt="home" /></b><span class="hidden-xs"><img src="../plugins/images/pixeladmin-text.png" alt="home" /></span></a></div>
                <ul class="nav navbar-top-links navbar-left m-l-20 hidden-xs">
                    <li>
                        <form role="search" class="app-search hidden-xs">
                            <input type="text" placeholder="Search..." class="form-control"> <a href=""><i class="fa fa-search"></i></a>
                        </form>
                    </li>
                </ul>
                <ul class="nav navbar-top-links navbar-right pull-right">
                    <li>
                        <a class="profile-pic" href="#"> <img src="${path }/static/admin/plugins/images/users/varun.jpg" alt="user-img" width="36" class="img-circle"><b class="hidden-xs">Steave</b> </a>
                    </li>
                </ul>
            </div>
            <!-- /.navbar-header -->
            <!-- /.navbar-top-links -->
            <!-- /.navbar-static-side -->
        </nav>
        <!-- Left navbar-header -->
        <div class="navbar-default sidebar" role="navigation">
            <div class="sidebar-nav navbar-collapse slimscrollsidebar">
                <ul class="nav" id="side-menu">
                    <li style="padding: 10px 0 0;">
                        <a href="/admin/index.ht" class="waves-effect"><i class="fa fa-clock-o fa-fw" aria-hidden="true"></i><span class="hide-menu">首页</span></a>
                    </li>
                    <li>
                        <a href="/admin/declare/profile.ht" class="waves-effect"><i class="fa fa-user fa-fw" aria-hidden="true"></i><span class="hide-menu">课程详情</span></a>
                    </li>
                    <li>
                        <a href="/admin/declare/FindAll.ht" class="waves-effect"><i class="fa fa-table fa-fw" aria-hidden="true"></i><span class="hide-menu">课程申报栏目管理</span></a>
                    </li>
                    <li>
                        <a href="/admin/courseInfo.ht" class="waves-effect"><i class="fa fa-font fa-fw" aria-hidden="true"></i><span class="hide-menu">所有课程</span></a>
                    </li>
                    <li>
                        <a href="/admin/User/userInfo.ht" class="waves-effect"><i class="fa fa-globe fa-fw" aria-hidden="true"></i><span class="hide-menu">用户管理</span></a>
                    </li>
                    <li>
                        <a href="/admin/blank.ht" class="waves-effect"><i class="fa fa-columns fa-fw" aria-hidden="true"></i><span class="hide-menu">校内课程评审管理</span></a>
                    </li>
                    
                </ul>
                <div class="center p-20">
                </div>
            </div>
        </div>
        <!-- Left navbar-header end -->
        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row bg-title">
                    <div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
                        <h4 class="page-title">课程申报栏目管理</h4> </div>
                    
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /row -->
                <div class="row">
                    <div class="col-sm-12">
                        <div class="white-box">
                            <h3 class="box-title">课程申报栏目表</h3>
                            <p class="text-muted">Add class <code>.table</code></p>
                            <div class="table-responsive">
                                <table class="table">
                                    <thead>
                                        <tr>
                                        	<th>课程号</th>
                                            <th>课程名称</th>
                                            <th>负责人</th>
                                            <th>所属学院</th>
                                            <th>所属学科</th>
                                            <th>申报时间</th>
                                            <th>状态</th>
                                            <th>同意申报</th>
                                            <th>删除课程</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <c:choose>
										<c:when test="${not empty coursedeclare.getResult()}">
										<c:forEach items="${coursedeclare.getResult()}" var="coursedeclare">
                                        <tr>
                                            <td>${coursedeclare.serialNumber }</td>
                                            <td>${coursedeclare.cName }</td>
                                            <td>${coursedeclare.cPrincipal }</td>
                                            <td>${coursedeclare.college }</td>
                                            <td>${coursedeclare.discipline }</td>
                                            <td>${coursedeclare.time }</td>
                                            <td>${coursedeclare.technical }</td>
                                            <td>
                                            	<a href="/admin/declare/Sh?serialNumber=${coursedeclare.serialNumber}&&cName=${coursedeclare.cName }">同意申报</a>                             	
                                            </td>
                                            <td><a href="/admin/declare/shanchu.ht?serialNumber=${coursedeclare.serialNumber }">删除申报</a></td>
                                        </tr>
                                        </c:forEach>
                                    </tbody>
                                </table>
                            </div>
                           <div class="page">
					<!--如果当前页大于1-->
					<c:if test="${coursedeclare.getPageNum() gt 1 }">
					<a href="/admin/declare/FindAll.ht?p=${coursedeclare.getPageNum() -1 }">上一页</a>
					</c:if>
					<c:forEach begin="1" end="${coursedeclare.getPages() }" var="p">
						<c:if test="${coursedeclare.getPageNum() eq p }">
						<a class="cur" href="javascript:void(0);">${p }</a>
						</c:if>
						<c:if test="${coursedeclare.getPageNum() ne p }">
						<a href="/admin/declare/FindAll.ht?p=${p }">${p }</a>
						</c:if>
					</c:forEach>
						<!--如果当前页小于1-->
						<c:if test="${coursedeclare.getPageNum() lt coursedeclare.getPages() }">
						<a href="/admin/declare/FindAll.ht?p=${coursedeclare.getPageNum() + 1 }">下一页</a>
						</c:if>
					</div>
					  </c:when>
                                        <c:otherwise>
					没查到任何结果
					</c:otherwise>
                                        </c:choose>
                        </div>
                    </div>
                </div>
                <!-- /.row -->
            </div>
            <!-- /.container-fluid -->
        </div>
        <!-- /#page-wrapper -->
    </div>
    <!-- /#wrapper -->
    <!-- jQuery -->
    <script src="${path}/static/admin/plugins/bower_components/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="${path}/static/admin/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- Menu Plugin JavaScript -->
    <script src="${path}/static/admin/plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.js"></script>
    <!--slimscroll JavaScript -->
    <script src="${path}/static/admin/js/jquery.slimscroll.js"></script>
    <!--Wave Effects -->
    <script src="${path}/static/admin/js/waves.js"></script>
    <!-- Custom Theme JavaScript -->
    <script src="${path}/static/admin/js/custom.min.js"></script>
</body>

</html>
